from drf_haystack.serializers import HaystackSerializer

from xyz.search_indexes import ArticleIndex


class ArticleSearchSerializer(HaystackSerializer):
    class Meta:
        index_classes = [ArticleIndex]
        fields = ('text', 'id', 'createtime', 'content', 'title')
